import request from "@/utils/requestyywk";

export function smsCode({ username, code }) {
  return request({
    url: "sms",
    method: "post",
    data: { username, code },
  });
}
export function signup({ username, code }) {
  return request({
    url: "signup",
    method: "post",
    data: { username, code, sl: false },
  });
}
export function activeInfo({ token }) {
  return request({
    url: "active-info",
    method: "post",
    data: { token },
  });
}

export function activeFunc({ token, code }) {
  return request({
    url: "active",
    method: "post",
    data: { token, code },
  });
}

export function activeShop({ token, shopId }) {
  return request({
    url: "active-shop",
    method: "post",
    data: { token, shopId },
  });
}
// export function getInfo(token) {
//   return request({
//     url: '/admin/acl/index/info',
//     method: 'get',
//     params: { token }
//   })
// }

// export function logout() {
//   return request({
//     url: '/admin/acl/index/logout',
//     method: 'post'
//   })
// }
